package LB1;

import static java.lang.Math.pow;

/**
 * Created with IntelliJ IDEA.
 * User: Борис
 * Date: 22.09.13
 * Time: 19:57
 * To change this template use File | Settings | File Templates.
 */
public class Test {
    public Test(double[][] gridFunction){
        System.out.println("Тестирование методов, решающих системы линейных уравнений\n");
        Work object = new Work(gridFunction);
        double[][] matrixOfSystem2x2 = {
                {1, 2},
                {3, 4}
        };
        double[] line = {3, 7};
        System.out.println("Система 2-х линейных уравнений");
        for(double element : object.answerA(matrixOfSystem2x2,line))
            System.out.println(element);
        double[][] matrixOfSystem3x3 = {
                { 4, 1, 2},
                { 2,-3,-1},
                {-1, 1,-2},
        };
        double[] lineThree = {12, -7, -5};
        System.out.println("\nСистема 3-х линейных уравнений");
        for(double element : object.answerB(matrixOfSystem3x3,lineThree))
            System.out.println(element);
    }
}

